package com.cino.demos.entity.comment;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Comment {

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 父节点id
     */
    private Integer parentId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 子评论列表
     */
    private List<Comment> list;
    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
